package com.example.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {

    /**
     * 订单id
     */
    private Integer id;
    /**
     * 当但编号
     */
    private Long orderNo;
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 课程id
     */
    private Integer courseId;
    /**
     * 下单时间
     */
    private LocalDateTime OrderDate;

    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 支付时间
     */
    private LocalDateTime payDate;
    /**
     * 支付流水号
     */
    private String payNo;

    /**
     * 取消时间
     */
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime cancelTime;

}
